package com.bw.zzy.partal2.controller.form;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Slf4j
public class InsertWorkPlanForm {

    @NotNull(message = "deptSubId不能为空")
    @Min(value = 1,message = "deptSubId不能小于1")
    private Integer deptSubId;

    @NotNull(message = "doctorId不能为空")
    @Min(value = 1,message = "doctorId不能小于1")
    private Integer doctorId;

    @NotBlank(message = "date不能为空")
    private String date;

    @NotNull(message = "totalMaximux不能为空")
    @Range(min = 1,max = 100,message = "totalMaxmum内容不正确")
    private Integer totalMaximum;


    @NotNull(message = "slotMaximum不能为空")
    @Range(min = 1,max = 30,message = "slotMaximim内容不正确")
    private Integer slotMaximum;


    @NotEmpty(message = "slots不能为空")
    private Integer[] slots;


}
